
public class Demo {
    public static void main(String[] args) {
        Manager yuanGong = new Manager("小王","公司","100",5000,5 ,"员工");
        Manager jingLi = new Manager("小张","公司","001",10000,10,"经理");
 
        yuanGong.add();  // 调用方法
        jingLi.add(jingLi.getLevel());  // 调用方法,放入级别
 
        zhang(yuanGong);
        System.out.println("------------");
        zhang(jingLi);
    }
    public static void zhang(Manager z){
        System.out.println(z.getName() + "在公司担任的职位是" +z.getLevel() +",工号为:" +z.getID());
        System.out.println("工龄" + z.getAge() + "年,在公司辛勤工作,公司决定鼓励,涨薪为:" + z.getWages());
    }
}